﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FRMS.Model
{
    public class JLHeartbeatInfo
    {
        public string Name { get; set; }
        public int TimeStamp { get; set; }
        public string Session { get; set; }
        public string UUID { get; set; }
        public string DeviceId { get; set; }
        public JLHeartbeatDetail Data { get; set; }
    }
    public class JLHeartbeat
    {
        public string DeviceId { get; set; }
        public string DeviceUUID { get; set; }
        public string UUID { get; set; }
        public string DeviceMac { get; set; }
        public string DeviceIP { get; set; }
        public string DeviceAddress { get; set; }
        public string DeviceDirection { get; set; }
        public string WebVersion { get; set; }
        public string CoreVersion { get; set; }
        public string VersionDate { get; set; }
        public int ChannelNo { get; set; }
    }

    public class JLHeartbeatDetail
    {
        public JLHeartbeat DeviceInfo { get; set; }
        public string HTTPVersion { get; set; }
        public string HTTPDate { get; set; }
        public int HeartbeatCount { get; set; }
        public int CaptureCount { get; set; }
        public int MiddleWareStatus { get; set; }
    }

    public class HeartbeatReturn
    {
        public string Name { get; set; }//接口名称定义
        public int TimeStamp { get; set; }//时间戳
        public string Session { get; set; }//生成规则：UUID _TimeStamp（规则可自定义）
        public int EventCount { get; set; }
        public int Code { get; set; }//返回操作码
        public string Message { get; set; }//返回操作信息
    }

    public class N71SPHeartbeatInfo
    {
        public string Cmd { get; set; }
        public string DeviceID { get; set; }
    }
}



